package test;

public class NewOne {
    public String test1(int[] num) {
        String finalResult = new String();
        String[] result = new String[100];
        int index = 0;
        for (int i = 0; i < num.length; i++) {
            for (int j = 1; j < num.length; j++) {
                for (int k = 2; k < num.length; k++) {
                    while (num[i] + num[j] + num[k] == 0) {
                        result[++index] = "[" + num[i] + ',' + num[j] + ',' + num[k] + "]";
                    }


                }
            }

        }
        for (String a : result) {
            finalResult = finalResult + a + ',';

        }
        return '[' + finalResult.substring(0,finalResult.length()-1) + ']';
    }

    public static void main(String[] args) {

    }
}


//不合规就要改。